const ResponseError = require('../../../helper/ResponseError')

const tableName = 'administrator'

const get = async (knex, params, accountId) => {
  const record = await knex.service.get(tableName, accountId, params)
  return record
}

const update = async (knex, params, accountId) => {
  const updateParams = params
  const record = await knex.service.update(tableName, accountId, updateParams)
  return record
}

module.exports = {
  get,
  update,
}
